import request from '@/utils/request'

export default {
    //生成统计数据
    createDataSta(day) {
        return request({
            url: '/edusta/sta/createStaData/'+day,
            method: 'post'
        })
    },
    //获取数据进行图表显示
    showDataEcharts(searchObj) {
        return request({
            url: `/edusta/sta/getCountData/${searchObj.begin}/${searchObj.end}/${searchObj.type}`,
            method: 'get'
        })
    }
}